﻿
namespace Assets.Scripts.DL.Enemy.CommonEnemy.States.Special {
	public class Die : CommonState<Controller> {
		public Die(Controller controller, StateEnum stateName) : base(controller, stateName) {
			AddConditionToSelf(() => _controller.StateData.IsDie);
		}

		public override void Enter() {
			_controller.PlayAnim(StateEnum.Die);
			_controller.Velocity = UnityEngine.Vector2.zero;
			_controller.SetGravity(2);
		}

		public override void Exit() {
			throw new System.NotImplementedException();
		}

		public override void Update() {
		}
	}
}
